<template>
  <b>Tab two</b>
</template>
<script setup>
import { onActivated, onDeactivated } from 'vue'
onActivated(() => {
  console.log('two 被激活')
})
onDeactivated(() => {
  console.log('two 被缓存')
})
</script>
<script>
export default {
  name: 'TwoTab', //必须设置name,才能被keep-alive正确识别
}
</script>
